package com.itheima.design.mode.observer;

import com.alibaba.fastjson.JSON;
import com.itheima.design.mode.observer.service.LotteryResult;
import com.itheima.design.mode.observer.service.LotteryServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ApiTest {

    static Logger logger = LoggerFactory.getLogger(ApiTest.class);

    public static void main(String[] args) {

        LotteryServiceImpl lotteryService = new LotteryServiceImpl();
        LotteryResult result = lotteryService.draw("2765789109876");
        logger.info("测试结果：{}", JSON.toJSONString(result));
    }
}
